About 479 letters

About 2 minutes

#float

Description: Converts a value to float.

def float(x = 0.0):
    '''
    Converts a value to float

    :param x: A variable
    :return: The value converted to float
    '''

Example:

print(float(100))
print(float('100'))
print(float('2e10'))
print(float('   3.14\n'))

>>> Establishing WebAssembly Runtime.

>>> Standby.

Powered by Shift.

Updated: 6/9/2025

Author: PlanC

Created: 6/9/2025